package com.hcmus.armobile;


import java.util.ArrayList;

import common.Location;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;


public class Favorite extends MainActivity{
	
	private ImageButton btnAddCategoriesFavor;
	private ImageButton btnAddLocationFavor;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.favorite);
		btnAddCategoriesFavor = (ImageButton) findViewById(R.id.imageButtonAddCategoriesFavor);
		btnAddLocationFavor = (ImageButton) findViewById(R.id.imageButtonAddLocationFavor);
		
		btnAddCategoriesFavor.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent in = new Intent(v.getContext(), FavorCategories.class);
				startActivity(in);
			}
		});
		
		btnAddLocationFavor.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent in = new Intent(v.getContext(), FavorProvince.class);
				startActivity(in);
			}
		});
	}

}
